import request from "@/axios/request";
import url from "@/axios/url";
const { mesUrl, adminUrl } = url();
// 导出url
export const exportUrl = `${mesUrl}mesPcMaterialDemand/quotation/export`

// 分页查询
export function getList (params = {}) {
  return request({
    url: `${mesUrl}mesPcRecheckOrder/quotation`,
    method: "get",
    params,
  });
}
// 详情
export function getInfo (id) {
  return request({
    url: `${mesUrl}mesTmRecheckOrder/info/${id}`,
    method: "get",
  });
}
/************************** 供应商人员侧 ************************/
// 分页查询物料需求列表
export function mesPcMaterialDemandGetList (params = {}) {
  return request({
    url: `${mesUrl}mesPcMaterialDemand/quotation`,
    method: "get",
    params,
  });
}
// 报价
export function mesPcQuotationSave (data = {}) {
  return request({
    url: `${mesUrl}mesPcQuotation/save`,
    method: "post",
      data
  });
}
// 报价更新（驳回修改后更新报价）
export function mesPcQuotationUpdate (data = {}) {
  return request({
    url: `${mesUrl}mesPcQuotation/quotation/update`,
    method: "post",
      data
  });
}
//报价详情
export function mesPcQuotationResult (params = {}) {
  return request({
    url: `${mesUrl}mesPcQuotation/quotation/result`,
    method: "get",
    params,
  });
}